<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
div {
  height: 100px;
  width: 100px;
}
.d1 {
  background-color: yellow;
  position: absolute;
  z-index: 2;
}
.d2 {
  background-color: blue;  /* 修正拼写错误 */
  position: fixed;
  left: 50px;
  top: 50px;
  z-index: 1;
}
</style>
</head>
<body>
<div class="d1"></div>
<div class="d2"></div>
</body>
</html>

